<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/9
 * Time: 9:58
 */

namespace App\Repositories;

use App\Models\Banner;

class BannerRepository extends BaseRepository
{
    public function model()
    {
       return Banner::class;
    }

    /**
     * Date: 2018/4/10
     * @author Sam
     * @param $company_id
     * @return \Illuminate\Database\Eloquent\Collection|static[]
     */
   public function getBanners($company_id)
   {
        $banners = $this->where('company_id',$company_id)->get();
        return $banners;
   }

    protected function serialization(array $attributes)
    {
        // TODO: Implement serialization() method.
    }
}